import { createApp } from 'vue'
import {VueMasonryPlugin} from 'vue-masonry';
import './style.css'
import App from './App.vue'
/* 导入创建的pinia实例 */
import pinia from './store'
/* 导入路由 */
import router from './router'
/* 移动端适配 */
import 'amfe-flexible'
import 'vant/lib/index.css';
// import { ActionSheet } from 'vant';
// import { ShareSheet } from 'vant';
import 'vant/lib/index.css';

import './utils/permission'

import Header from './components/Header/index.vue'

/* 注册pinia,router */
const app  = createApp(App)

app.component('Header',Header)
app.component('Search',()=>import('./components/Search/index.vue'))
app.use(pinia)
app.use(router)
app.use(VueMasonryPlugin)
// app.use(ShareSheet);
app.mount('#app');

